<?php require_once ('admin.php');?>
<?php 
if(isset($_GET['i'])){
    if(isset($_POST['delete'])){
	RequestAQoute::delete($_GET['i']);
	
	wp_redirect('request-a-quote.php');
    }
?>

<?php include_once ('./admin-header.php');?>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">

<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>

<form method="post" action="">
    <div class="alert alert-danger">
	Do your want to delete this item?
	<input type="submit" name="delete" value="Yes" class="btn btn-primary"/>    
	
	  <a href="request-a-quote.php" class="btn btn-default">No</a>	
    </div>
</form>
<?php }else{
     wp_redirect('404.php');
}
?>
<?php include('./admin-footer.php');?>
